<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>事件提醒&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</title>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/msgtips/RemTips.js"></script>
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="window_head_intext"><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> 事件提醒</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td class="content"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="aux_outtable_color"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
          <tr>
            <td class="aux_intable_td1">标 题：</td>
            <td class="aux_intable_td3" id="title"></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">时 间：</td>
            <td class="aux_intable_td3" id="time"></td>
          </tr>
          <tr>
            <td class="aux_intable_td1" valign="top">详细内容：</td>
            <td class="aux_intable_td3" id="detail"><div style="height:100px;overflow:auto;"></div></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">重复周期：</td>
            <td class="aux_intable_td3" id="repeat"></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">提 醒：</td>
            <td class="aux_intable_td3" id="remind"></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%" border="0" align="center" cellspacing="0">
        <tr>
          <td colspan="3" height="5px"></td>
        </tr>
        <tr>
          <td width="33%">&nbsp;</td>
          <td width="33%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
              <td ><a href="#" onFocus="this.blur()" onClick="pre();">上一条</a></td>
              <td>&nbsp;</td>
              <td><a href="#" onFocus="this.blur()" onClick="next();">下一条</a></td>

              <td>共<span class="font_red" onFocus="this.blur()" id="total"></span>条</td>
            </tr>
          </table></td>
          <td width="33%" class="window_Content_font">&nbsp;</td>
        </tr>
      </table>
      </td>
  </tr>
  <tr>
    <td class="window_footer"><table border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td class="buttonOffLeft" id="btn1_11"></td>
        <td class="buttonOffMiddle" id="btn1_12" onClick="closewin();" onMouseOver="btn_change_over(1)" onMouseOut="btn_change_out(1)" onBlur="btn_change(1)"><img src="${ctx}/images/ico_ok.gif"  border="0" align="absbottom"> 确
          定</td>
        <td class="buttonOffRight" id="btn1_13"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<script><!--


var obj = window.dialogArguments;
var node = obj.node;
var msgQueue = obj.msgQueue;
var i = obj.i;

function pre()
{
if(i - 1 > -1)
{
   if(msgQueue[i - 1] != null)
   setNode(msgQueue[-- i]);
   else
   {
   	--i;
   	pre();
   }
}
}
function next()
{
  if(i + 1 < msgQueue.length)
  {
    if(msgQueue[i + 1] != null)
	setNode(msgQueue[++ i]);
	else
	{
	++i;
	next();
	}
   }
}
function setNode(node)
{

	document.getElementById("title").innerHTML = node.title;
	document.getElementById("time").innerHTML = node.time;
	document.getElementById("detail").innerHTML = node.detail;
	document.getElementById("repeat").innerHTML = node.repeat;
	document.getElementById("remind").innerHTML = node.remind;
	document.getElementById("total").innerHTML = msgQueue.length;
}
setNode(node);




--></script>
</html>